package task;

public abstract class AbstractTaskRunner {
	private AbstractTask task;
	
	private int measureTime;
	
	private long taskTimeConsuming;
	
	/**
	 * Run task and measure the time consuming by the rule.
	 */
	public abstract void runTask();
	
	public abstract String getMeasureStrategy();

	public AbstractTask getTask() {
		return task;
	}

	public void setTask(AbstractTask task) {
		this.task = task;
	}

	public int getMeasureTime() {
		return measureTime;
	}

	public void setRunningTime(int runningTime) {
		this.measureTime = runningTime;
	}

	public long getTaskTimeConsuming() {
		return taskTimeConsuming;
	}

	public void setTaskTimeConsuming(long taskTimeConsuming) {
		this.taskTimeConsuming = taskTimeConsuming;
	}
}
